// 对枚举使用keyof和typeof
enum LogLevel {
    ERROR,
    WARN,
    INFO,
    DEBUG,
  }
   type dadas = keyof typeof LogLevel

//    等价于 type dadas = "ERROR" | "WARN" | "INFO" | "DEBUG"